notebook: Fix child property setters causing underallocations
authorBenjamin Otte <otte@redhat.com>
Fri, 26 Aug 2011 23:50:28 +0000 (01:50 +0200)
committerBenjamin Otte <otte@redhat.com>
Sat, 27 Aug 2011 00:47:51 +0000 (02:47 +0200)
Don't randomly allocate around, queue resizes instead.

gtk/gtknotebook.c

index 0ae65efcc8908ff8d01c4cd46866b9cd48547d10..a518e9c7ca2e57aadef7cdd11debf4fff69a5795 100644 (file)
@@ -7853,7 +7853,7 @@ gtk_notebook_set_tab_label_packing (GtkNotebook *notebook,
   gtk_widget_child_notify (child, "tab-fill");
   gtk_widget_child_notify (child, "position");
   if (priv->show_tabs)
-    gtk_notebook_pages_allocate (notebook);
+    gtk_widget_queue_resize (GTK_WIDGET (notebook));
   gtk_widget_thaw_child_notify (child);
 }